export const types = {
  STRING: 1,
  BOOLEAN: 2,
  NUMBER: 3,
  HEX: 4,
  REFERENCE: 5,
  FILE: 6,
  TIME: 7,
  DATE: 8,
  DATETIME: 9
}

export const dateFormatters = {
  [types.DATETIME]: ['MM/dd/yyyy HH:mm:ss', 'dd/MM/yyyy HH:mm:ss', 'yyyy/MM/dd HH:mm:ss', 'YYYY-MM-dd HH:mm:ss'],
  [types.TIME]: ['HH:mm:ss'],
  [types.DATE]: ['MM/dd/yyyy', 'dd/MM/yyyy', 'yyyy/MM/dd', 'YYYY-MM-dd']
}

export const MAX_LENGTH = {
  [types.STRING]: 255,
  [types.REFERENCE]: 100,
  [types.HEX]: 2048,
  [types.NUMBER]: 999999999999999,
  CUSTOM_COMPONENT_CATEGORY: 64, // 自定义组件Category输入框的最大值
  LABEL: 64,
  KEY: 64
}
